<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>Hello,JSP</h1>
<%
    int sum=0;
    for(int i=1;i<=100;i++){
        sum+=i;
    }
%>
<h1>1到100的和为：<%=sum%></h1>
</body>
</html>